﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExpoNewsList.aspx.cs" Inherits="admin_Expo_ExpoNewsList" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>管理展会资讯</title>
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../js/jquery.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            <h3>
                管理展会资讯</h3>
        </div>
        <div>
            <div class="itemtitle_tect">
                <p>
                    关键字：<asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    所属类别:<asp:DropDownList ID="dropExpoNewsType" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="btnSelect" runat="server" Text="查询" OnClick="btnSelect_Click" CssClass="i_button" />
                </p>
            </div>
			<div class="talbe_border">
                        <asp:GridView ID="grdExpoNews" runat="server" AutoGenerateColumns="False" Font-Overline="False" CssClass="talbe_list" GridLines="None" CellPadding="0" AllowPaging="False" OnPageIndexChanging="grdExpoNews_PageIndexChanging" DataKeyNames="ID" HeaderStyle-CssClass="itemtitle" OnRowDataBound="grdExpoNews_RowDataBound1">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle />
									<HeaderStyle CssClass="th20 tou" />
			                <ItemStyle CssClass="nolet" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="信息标题">
                                    <ItemTemplate>
                                        <%# Eval("Title") %>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="left2" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="所属类别">
                                    <ItemTemplate>
                                        <a style="text-decoration: none" href='ExpoNewsList.aspx?TypeID=<%# DataBinder.Eval(Container.DataItem,"TypeID") %>'>
                                            <%# DataBinder.Eval(Container.DataItem, "Type") %>
                                        </a>                                      
                                    </ItemTemplate>
                                    <ItemStyle CssClass="th80" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="发布日期">
                                    <ItemTemplate>
                                        <%# GetShortDate(DataBinder.Eval(Container.DataItem, "AddDate").ToString())%>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="th80" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="状态">
                                    <ItemTemplate>
                                        <span>
                                            <%#  ShowVerify(Eval("Verify").ToString())  %>
                                        </span>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="th30" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        操作选项
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                    <a href='ExpoNewsEdit.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>'>修改</a> | <asp:LinkButton ID="lbtnDel" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>' OnCommand="lbtnDel_Command">删除</asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="th80" />
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                        <div class="Paging">
                            <p>
                                <uc1:PageNo ID="PageNo1" runat="server" />
                            </p>
                            <input id="CheckBox2" name="CheckBox2" onclick="SelectAll();" type="checkbox" />全选
                            <asp:Button ID="btnDelete" runat="server" Font-Size="9pt" OnClick="btnDelete_Click"
                                Text="批量删除" CssClass="i_button" />
                            <asp:Button ID="ButEigible" runat="server" Font-Size="9pt" Text="审核通过" CssClass="i_button1"
                                OnClientClick="javascript:return confirm('您确定要让该信息通过审核吗？') " OnClick="ButEigible_Click" />
                            <asp:Button ID="ButDisqualification" runat="server" Font-Size="9pt" Text="审核未通过" CssClass="i_button1"
                                OnClientClick="javascript:return confirm('您确定不让该信息通过审核吗？')" OnClick="ButDisqualification_Click" />
                        </div>
                        <asp:Label ID="lblMessage" runat="server" Text="Label" Visible="False"></asp:Label>
				</div>
        </div>
    </form>
</body>
</html>
